package com.xjy.rpcconsume.service;

import com.xjy.controller.HelloWorldService;
import com.xjy.rpc.annotation.RpcServer;
import com.xjy.rpc.annotation.ServerRegister;

import java.util.concurrent.TimeUnit;

//@ServerRegister
public class HelloWorldServiceImpl implements HelloWorldService {
    @Override
    @RpcServer(expireTime = 2,timeUnit = TimeUnit.HOURS)
    public String hello(String msg) {
        return msg;
    }
}
